@layout("/backend/common/_container.html"){

<#Hidden id="entityMap" value="${entityMap}"/>
<#Hidden id="recommendTypeMap" value="${recommendTypeMap}"/>
<style>
    table#queryCon td {padding-left: 10px}
    #queryCon{
        margin-left:-10px;
    }
</style>

<div class="hisui-panel" fit="true" style="padding:10px;border:0px;">
    <div class="hisui-layout" data-options="fit:true">
            <div class="hisui-layout" data-options="fit:true">
                <div class="hisui-panel" data-options="region:'north'" style="height:90px;border:0;">
                    <div class="hisui-panel" fit='true' title="诊疗方案维护"
                         data-options="iconCls:'icon-apply-check',fit:true,headerCls:'panel-header-gray'"
                         style="border-bottom:1px solid #ccc;border-radius:0;">
                        <table id = "queryCon" style="border-collapse:separate; border-spacing:10px;">
                                <tr>
                                    <td class='' for="entityType">病种</td>
                                    <td>
                                        <input class="hisui-combobox textbox" id="QCDic" style="width: 255px;"/>
                                    </td>

                                    <td class='' for="recommendType">方案类型</td>
                                    <td>
                                        <!--<input class="hisui-combobox textbox" id="recommendType"/>-->
                                        <select class="hisui-combobox textbox" id="recommendType" name="recommendType"
                                                data-options="editable:false,multiple:false,panelHeight:'auto',selectOnNavigation:false,onLoadSuccess:SdcTreatPlan.initRecommend
                                            ">
                                            @for (recommendType in recommendTypeMap) {
                                            <option value="${recommendType.key}">${recommendType.value}</option>
                                            @}
                                        </select>
                                    </td>
                                    <td>
                                        <#Button name="查询" icon="fa fa-search" clickFun="SdcTreatPlan.search()" />
                                    </td>
                                    <td>
                                        <#Button name="同步CDSS本病种知识库" icon="fa icon-w-import" clickFun="SdcTreatPlan.manual()" />
                                    </td>
                                    <td>
                                        <#Button name="日志" icon="fa icon-w-list" clickFun="SdcTreatPlan.log()" />
                                    </td>
                                </tr>
                            </table>
                    </div>
                </div>

                <div data-options="region:'center'"
                     style="padding:0px;border:1px solid #ccc;border-radius:0 0 4px 4px;">
                    <div class="hidden-xs" id="SdsExpressTableToolbar" role="group">
                        <#Button name="新增" icon="icon-add" plain="true" clickFun="SdcTreatPlan.add()"/>
                        <#Button name="修改" icon="icon-write-order" plain="true" clickFun="SdcTreatPlan.edit()"/>
                        <#Button name="删除" icon="icon-cancel" plain="true" clickFun="SdcTreatPlan.del()"/>
                        <a id="offline" class="hisui-linkbutton" data-options="iconCls:'icon-unload-cloud',plain:true" onclick="SdcTreatPlan.offLine()">下线</a>
                        <a id="online" class="hisui-linkbutton" data-options="iconCls:'icon-unload-cloud',plain:true" onclick="SdcTreatPlan.offLine()">上线</a>
                        <input type="text" readonly id="planActive" value="" class="textbox" style="background-color: rgba(0,0,0,0);border-color: transparent;color: red" />
                    </div>
                    <#Table id="SdcTreatPlanTable"/>
                </div>
            </div>
    </div>
</div>
<script src="${ctxPath}/static/backend/sdc/sdctreatplan/sdctreatplan.js"></script>
@}